package com.ccp.dev.extend.model;

/**
 * @Author: dfz
 * @Date: 2019/5/16 14:07
 * @Description:数据库表字段（列）的基本信息
 */
public class ExtendColumnInfo
{
    /**
     * 字段名称
     * */
    private String columnName;

    /**
     *  字段类型
     *  */
    private String dataType;

    /**
     *  字段长度
     *  */
    private String dataLength;

    /**
     * 列描述
     * */
    private String columnComment;

    /**
     *  Java属性类型
     *  */
    private String attrType;

    /**
     * myBatis 的jdbcTpe
     * */
    private String jdbcType;

    /**
     * Java属性名称(第一个字母大写)，如：user_name => UserName
     * */
    private String attrNameForMethod;

    /**
     * Java属性名称(第一个字母小写)，如：user_name => userName
     * */
    private String attrNameForProperty;

    /**
     * 字段列型：主键等
     */
    private String columnkey;
    /**
     * 该字段是否作为查询条件
     */
    private Boolean asQuery=true;

    /**
     * 该字段是否作为表单填写项
     */
    private Boolean asFormCol=true;

    /**
     * 该字段是否作为列表展示项
     */
    private Boolean asShowCol=true;

    public String getAttrNameForMethod() {
        return attrNameForMethod;
    }

    public void setAttrNameForMethod(String attrNameForMethod) {
        this.attrNameForMethod = attrNameForMethod;
    }

    public String getAttrNameForProperty() {
        return attrNameForProperty;
    }

    public void setAttrNameForProperty(String attrNameForProperty) {
        this.attrNameForProperty = attrNameForProperty;
    }

    public String getColumnName()
    {
        return columnName;
    }

    public void setColumnName(String columnName)
    {
        this.columnName = columnName;
    }

    public String getDataType()
    {
        return dataType;
    }

    public void setDataType(String dataType)
    {
        this.dataType = dataType;
    }

    public String getDataLength() {
        return dataLength;
    }

    public void setDataLength(String dataLength) {
        this.dataLength = dataLength;
    }

    public void setColumnComment(String columnComment) {
        this.columnComment = columnComment;
    }

    public String getColumnComment()
    {
        return columnComment;
    }

    public String getAttrType()
    {
        return attrType;
    }

    public void setAttrType(String attrType)
    {
        this.attrType = attrType;
    }

    public String getJdbcType() {
        return jdbcType;
    }

    public void setJdbcType(String jdbcType) {
        this.jdbcType = jdbcType;
    }

    public String getColumnkey() {
        return columnkey;
    }

    public void setColumnkey(String columnkey) {
        this.columnkey = columnkey;
    }

    public Boolean getAsQuery() {
        return asQuery;
    }

    public void setAsQuery(Boolean asQuery) {
        this.asQuery = asQuery;
    }

    public Boolean getAsFormCol() {
        return asFormCol;
    }

    public void setAsFormCol(Boolean asFormCol) {
        this.asFormCol = asFormCol;
    }

    public Boolean getAsShowCol() {
        return asShowCol;
    }

    public void setAsShowCol(Boolean asShowCol) {
        this.asShowCol = asShowCol;
    }
}
